#include "mergeRGBA.hpp"
#include <iostream>
#include <cassert>
using namespace std;


/**
 *
 */
void mergeRGBA (unsigned char* texture_pixels, unsigned char* alpha_pixels, int pixel_count)
{
    assert (texture_pixels != NULL);
    assert (alpha_pixels   != NULL);
    assert (pixel_count > 0);

    for (int i = 0; i < pixel_count; i++) {
        texture_pixels[i*4+3] = alpha_pixels[i];
    }
}